//void, Obj owner
Obj WatchEye;

if (!owner.AsUnit.IsValid)
	return;

Sleep(rand(100)+100);
WatchEye = Place("WatchEye", owner.pos, owner.player);
if(WatchEye.IsValid){
	WatchEye.SetSight(1000);
	WatchEye.SetCommand("infinite_spy");
	//SwapSelectedObj(owner, WatchEye); 
	ItemUsed(1);
}

